$(function() {

	var sj = document.querySelector(".djs");
	var h = 23,
		f = 59,
		s = 59;
	var ti ="请在"+"\t"+ h + ":" + f + ": " + s+"内完成支付，超时订单会自动取消";
  
	sj.innerText = ti;

	var fn = function() {

		s -= 1;
		if(s == 0) {
			f -= 1;
			s = 59;
			if(f == 0) {
				f=59;
				h -= 1;
                  if(h==0){
                  	h=23;
                  }
			}
		} else {
			ti ="请在"+"\t"+ h + ":" + f + ": " + s+"内完成支付，超时订单会自动取消";
			sj.innerText =ti;
		}
	}
	window.setInterval(fn, 1000);
	
	
	//控制显示高度
	$(".gr").on("click",function(){
	 $(".foot").css("height","500");
 

	})
	//
	$(".zfb").on("click",function(){
		
		$(".foot").css("height","350");
		
	})
	
})